package com.interfaces.module.logistics.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.interfaces.module.logistics.service.FtsLogisticsTrackService;
import com.ruoyi.common.util.Result;
import com.ruoyi.fts.domain.FtsLogisticsTrack;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/logistics")
public class LogisticsController{
    @Autowired
    private FtsLogisticsTrackService ftsLogisticsTrackService;
    @RequestMapping("/list")
    public Result list(String orderCode){
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("order_code",orderCode);
        List<FtsLogisticsTrack> logisticsTrackList=ftsLogisticsTrackService.list(queryWrapper);
        return Result.SUCCESS(logisticsTrackList);
    }
}
